package com.songcha.module_home.ui.fragment.homehome

import com.songcha.library_business.bean.book.BookListBean
import com.songcha.library_business.mvvm.BusinessRepository
import com.songcha.module_home.api.HomeApiManager
import io.reactivex.Observable

class HomeHomeRepository:BusinessRepository() {
    fun getEditorRecommendBookList(curPage:Int,pageSize:Int): Observable<BookListBean>{
        return HomeApiManager.api.getEditorRecommendBookList(curPage,pageSize)
    }

    fun getNewBookShelveList(curPage:Int,pageSize:Int):Observable<BookListBean>{
        return HomeApiManager.api.getNewBookShelveList(curPage,pageSize)
    }

    fun getHostBookList(curPage:Int):Observable<BookListBean>{
        return HomeApiManager.api.getHostBookList(curPage)
    }
}